.root {
  --preview-size: 600px;
  padding-bottom: 50px;
  max-width: calc(100vw - var(--combobox-shell-navbar-width));

  @mixin smaller-than $docs-mdx-breakpoint {
    max-width: calc(100vw - var(--mantine-spacing-md));
  }
}

.preview {
  background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-7));
  height: var(--preview-size);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--mantine-spacing-md) var(--mantine-spacing-lg);
  background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));

  @mixin smaller-than $docs-navbar-breakpoint {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 7px;
  }
}

.headerBody {
  flex: 1;
  margin-right: var(--mantine-spacing-md);
}

.title {
  font-size: var(--mantine-font-size-sm);
  font-weight: 500;
}

.description {
  font-size: var(--mantine-font-size-xs);
  color: var(--mantine-color-gray-6);
  margin-top: 3px;
}

.inner {
  display: flex;
  justify-content: center;
  height: 100%;
  padding-top: 180px;
}

.wrapper {
  flex: 1;
  max-width: 420px;
  padding-left: 20px;
  padding-right: 20px;
}

.code {
  border-top: 1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-6));
  position: relative;
  z-index: 2;
  background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));
}
